streamsource=getCookie("streamsource");
eval("VideoSize=videoin_c0_s"+streamsource+"_resolution");
eval("codectype=videoin_c0_s"+streamsource+"_codectype");
if(codectype=="mpeg4")
	eval("AccessName=network_rtsp_s"+streamsource+"_accessname");
else
	eval("AccessName=network_http_s"+streamsource+"_accessname");
	
/* RTSP plug-in defines */
var PLUGIN_ID = "RtspVapgCtrl";
var PLUGIN_NAME = "RtspVaPgDec.cab";
var PLUGIN_VER = "2,0,0,49";
var CLASS_ID = "45830FF9-D9E6-4f41-86ED-B266933D8E90";
var X_OFFSET = 10;
var Y_OFFSET = 30;
var X_OFFSET_CTRL = X_OFFSET;
var Y_OFFSET_CTRL = Y_OFFSET + 36;
var X_OFFSET_MD = X_OFFSET + 220;
var Y_OFFSET_MD = Y_OFFSET;
var CSET_TYPE = 101;
var CSET_HEIGHT = 200;
var STRETCH = "true";
var PLUGIN_LANG="EN";

var ss_width_offset = 40;
var ss_height_offset = 90;
var Width, Height;
var BaseWidth = 320;
var BaseHeight = 240;

switch(VideoSize)
{
case "1280x1024":
	Width = 1280;
	Height = 1024;
	W = 1280;
	H = 1024;
	break;
case "800x600":
	Width = 800;
	Height = 600;
	W = 800;
	H = 600;
	break;
case "640x480":
	Width = 640;
	Height = 480;
	W = 640;
	H = 480;
	break;
case "320x240":
	Width = 320;
	Height = 240;
	W = 320;
	H = 240;
	break;
case "176x144":
	Width = 176;
	Height = 144;
	W = 320;
	H = 240;
	STRETCH = "false";
	break;
}

